package com.frxuexi.park2304.news

import com.frxuexi.lib_base.entity.NewsBeanItem
import com.frxuexi.lib_base.mvi.IUiIntent

sealed class NewsIntent:IUiIntent {
    data object getNews:NewsIntent()

    data class revokeNews(val id:Int):NewsIntent()
    data class getNewsByCon(val con:String):NewsIntent()

    data class upload(val name:String,val path:String):NewsIntent()

    data class addNews(val item:NewsBeanItem):NewsIntent()
    data class deleteNews(val id: Int):NewsIntent()

    data class getNewsById(val id:Int):NewsIntent()
    data class updateNews(val id:Int,val item: NewsBeanItem):NewsIntent()
}